package com.ant.storage.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author hzd
 * @since 2025-10-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user")
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("user_name")
    private String userName;

    @TableField("user_pwd")
    private String userPwd;

    @ApiModelProperty(value = "1审核中 2 通过 3 驳回")
    private Integer review;

    @ApiModelProperty(value = "审核人")
    @TableField("review_name")
    private String reviewName;

    @TableField("review_time")
    private LocalDateTime reviewTime;

    @TableField("creation_time")
    private LocalDateTime creationTime;

    @ApiModelProperty(value = "1 管理人员 2 其他人员")
    @TableField("account_type")
    private Integer accountType;

    @ApiModelProperty(value = "0 正常 1 停用")
    @TableField("is_open")
    private Integer isOpen;

    @TableField(exist = false)
    private String token;
}
